<%@ page import="BaseClass.PetInfo" %>
<%@ page import="DataBase.DataBase" %><%--
  Created by IntelliJ IDEA.
  User: 郭宇轩
  Date: 2020/11/16
  Time: 21:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<% PetInfo p = DataBase.getPetInfo(request.getParameter("pid")); %>
<head>
    <title><%= p.getPetName()%></title>
    <style type="text/css">
        @import url("../static/css/Header.css");
    </style>
</head>

<%@ include file="../MainPage/Header.jsp"%>

<table border="1" style="border-width: 0px;border: peru">
    <tr>
        <td colspan="2" align="center"><a><%= p.getPetName()%></a></td>
        <td rowspan="2"><img src="../images/<%=p.getPid()%>.jpg" width="250" height="250"> </td>
    </tr>
    <tr>
        <td align="center"><a>种类：<%= p.getPetClass()%></a></td>
        <td align="center"><a>价格：<%= p.getCost()%></a></td>
    </tr>
    <tr>
        <td colspan="3" align="center"><a>介绍：<%= p.getDescription()%></a></td>
    </tr>
    <tr>
        <td colspan="3" align="center"><a href="../AddCartServlet?pid=<%=p.getPid()%>">加入购物车</a></td>
    </tr>
</table>
</body>
</html>
